/*
 * @Author: liuhandong
 * @Date: 2020-11-20 08:36:30
 */
using UnityEngine;

public class ShadowMapRenderer : MonoBehaviour {
    public static RenderTexture shadowTex;
    public static Matrix4x4 shadowMat;
    public void Update()
    {
        var cam = GetComponent<Camera>();
        shadowTex = cam.targetTexture;
        shadowMat = cam.projectionMatrix * cam.worldToCameraMatrix;
    }
}